package mx.com.matersys.vacs.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.TableGenerator;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.roo.addon.dbre.RooDbManaged;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity(versionField = "", table = "actividades_recomendaciones")
public class ActividadesRecomendaciones {
	
	
	@Id
	@TableGenerator(name="GEN_ACTV", table="sequence", pkColumnName="SEQ_NAME", valueColumnName="SEQ_COUNT", pkColumnValue="SEQ_ACTV", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.TABLE, generator="GEN_ACTV")
    @Column(name = "id_actividades")
    private Integer idActividades;
	
	@Column(name = "titulo", length = 45)
    private String titulo;
    
    @Column(name = "indicaciones", length = 300)
    private String indicaciones;
    
    @Column(name = "idconsulta")
    private Integer idconsulta;
    
    @Column(name = "fechaDesde")
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date fechaDesde;
    
    @Column(name = "fechaHasta")
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date fechaHasta;
    
	
}
